package com.yisu.auction.ewf.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class OfferPriceLog implements Serializable {

    /**
     * 竞拍状态类型枚举
     */
    public enum AuctionStatusEnum {
        OUT(0, "出局"),
        UNDETERMIND(1, "待定"),
        WINNING(2, "中签");
        public int code;
        public String name;

        AuctionStatusEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String AuctionStatusEnum(int code) {
            for (AuctionStatusEnum item : AuctionStatusEnum.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }

    /**
     * 竞拍状态类型枚举
     */
    public enum CurrencyTypeEnum {
        OFFICIAL(1, "正式"),
        PRESENT(2, "赠送");
        public int code;
        public String name;

        CurrencyTypeEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String CurrencyTypeEnum(int code) {
            for (CurrencyTypeEnum item : CurrencyTypeEnum.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }

    private Long id;

    private Long createUserId;

    private Date createDate;

    private Long updateUserId;

    private Date updateDate;

    private Boolean isValid;

    private Long memberId;

    private Long prizeId;

    private Integer result;

    private Date offerPriceDate;

    private BigDecimal offerPrice;

    private BigDecimal transactionPrice;

    private Integer currencyType;

    private Integer prizePriceSort;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(Boolean isValid) {
        this.isValid = isValid;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(Long prizeId) {
        this.prizeId = prizeId;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public Date getOfferPriceDate() {
        return offerPriceDate;
    }

    public void setOfferPriceDate(Date offerPriceDate) {
        this.offerPriceDate = offerPriceDate;
    }

    public BigDecimal getOfferPrice() {
        return offerPrice;
    }

    public void setOfferPrice(BigDecimal offerPrice) {
        this.offerPrice = offerPrice;
    }

    public Integer getCurrencyType() {
        return currencyType;
    }

    public void setCurrencyType(Integer currencyType) {
        this.currencyType = currencyType;
    }

    public Integer getPrizePriceSort() {
        return prizePriceSort;
    }

    public void setPrizePriceSort(Integer prizePriceSort) {
        this.prizePriceSort = prizePriceSort;
    }

    public BigDecimal getTransactionPrice() {
        return transactionPrice;
    }

    public void setTransactionPrice(BigDecimal transactionPrice) {
        this.transactionPrice = transactionPrice;
    }
}